package com.cloudlead.commonData.query;

import static com.mysema.query.types.PathMetadataFactory.*;
import com.cloudlead.commonData.entity.ETbFuelRecharge;


import com.mysema.query.types.path.*;

import com.mysema.query.types.PathMetadata;
import javax.annotation.Generated;
import com.mysema.query.types.Path;

import com.mysema.query.sql.ColumnMetadata;
import java.sql.Types;

import com.mysema.query.sql.*;

import com.cloudlead.common.lang.annotation.Label;


/**
 * QTbFuelRecharge is a Querydsl query type for ETbFuelRecharge
 */
@Label("油卡充值登记信息表查询")
@Generated("com.cloudlead.utils.persistence.codegen.serializer.SimpleMetaDataSerializer")
public class QTbFuelRecharge extends RelationalPathBase<ETbFuelRecharge> {

    private static final long serialVersionUID = -759419660;

    public static final QTbFuelRecharge tbFuelRecharge = new QTbFuelRecharge("tb_fuel_recharge");

    public class PrimaryKeys {

        public final PrimaryKey<ETbFuelRecharge> primary = createPrimaryKey(id);

    }

    public class ForeignKeys {

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseOilCard> tbFuelRechargeBaseOilCard1Fk = createForeignKey(baseOilCardId, "id");

        public final ForeignKey<com.cloudlead.commonData.entity.ETbBankaccountRecord> _tbBankaccountRecordTbFuelRecharge1Fk = createInvForeignKey(id, "tb_fuel_recharge_id");

    }

    public final StringPath accountNumber = createString("accountNumber");

    public final StringPath agent = createString("agent");

    public final StringPath baseOilCardId = createString("baseOilCardId");

    public final StringPath comment = createString("comment");

    public final StringPath flag = createString("flag");

    public final StringPath id = createString("id");

    public final StringPath oilCardNumber = createString("oilCardNumber");

    public final DateTimePath<org.joda.time.DateTime> payDate = createDateTime("payDate", org.joda.time.DateTime.class);

    public final NumberPath<Float> rechargeAmount = createNumber("rechargeAmount", Float.class);

    public final StringPath status = createString("status");

    public final StringPath tbBankAccountId = createString("tbBankAccountId");

    public final PrimaryKeys pk = new PrimaryKeys();

    public final ForeignKeys fk = new ForeignKeys();

    public QTbFuelRecharge(String variable) {
        super(ETbFuelRecharge.class, forVariable(variable), "null", "tb_fuel_recharge");
        addMetadata();
    }

    public QTbFuelRecharge(String variable, String schema, String table) {
        super(ETbFuelRecharge.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QTbFuelRecharge(Path<? extends ETbFuelRecharge> path) {
        super(path.getType(), path.getMetadata(), "null", "tb_fuel_recharge");
        addMetadata();
    }

    public QTbFuelRecharge(PathMetadata<?> metadata) {
        super(ETbFuelRecharge.class, metadata, "null", "tb_fuel_recharge");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(accountNumber, ColumnMetadata.named("accountNumber").withIndex(5).ofType(Types.VARCHAR).withSize(45));
        addMetadata(agent, ColumnMetadata.named("agent").withIndex(6).ofType(Types.VARCHAR).withSize(45));
        addMetadata(baseOilCardId, ColumnMetadata.named("base_oil_card_id").withIndex(10).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(comment, ColumnMetadata.named("comment").withIndex(7).ofType(Types.VARCHAR).withSize(256));
        addMetadata(flag, ColumnMetadata.named("flag").withIndex(9).ofType(Types.VARCHAR).withSize(45));
        addMetadata(id, ColumnMetadata.named("id").withIndex(1).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(oilCardNumber, ColumnMetadata.named("oilCardNumber").withIndex(3).ofType(Types.VARCHAR).withSize(45));
        addMetadata(payDate, ColumnMetadata.named("payDate").withIndex(2).ofType(Types.TIMESTAMP).withSize(19));
        addMetadata(rechargeAmount, ColumnMetadata.named("rechargeAmount").withIndex(4).ofType(Types.REAL).withSize(12));
        addMetadata(status, ColumnMetadata.named("status").withIndex(8).ofType(Types.VARCHAR).withSize(45));
        addMetadata(tbBankAccountId, ColumnMetadata.named("tb_bank_account_id").withIndex(11).ofType(Types.CHAR).withSize(45).notNull());
    }

}

